package io.renren.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 购买课程
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-12-17 18:23:59
 */
@Data
@TableName("my_course")
public class MyCourseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long myCourseId;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 课程id
	 */
	private Long courseId;
	/**
	 * 到期时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date endDate;

//	@TableField(exist = false)
//	private String courseTitle ;

}
